/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.biotecan.easywgs.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author SuFeng
 */
public class Sample {
    private String sampleName;
    
    private List<Library> librarys = new ArrayList<>();
    
    private Date createDate;

    public String getSampleName() {
        return sampleName;
    }

    public void setSampleName(String sampleName) {
        this.sampleName = sampleName;
    }

    public List<Library> getLibrarys() {
        return librarys;
    }

    public void setLibrarys(List<Library> librarys) {
        this.librarys = librarys;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    
    public Sample(){}

    public Sample(String sampleName, Date createDate) {
        this.sampleName = sampleName;
        this.createDate = createDate;
    }

    public Sample(String sampleName) {
        this.sampleName = sampleName;
    }
    
    
    public void addLibrary(Library library){
        this.librarys.add(library);
    }

    @Override
    public String toString() {
        return "Sample{" + "sampleName=" + sampleName + ", librarys=" + librarys + ", createDate=" + createDate + '}';
    }
    
    
}
